package xyz.coolcsm.security.config;

import org.springframework.boot.SpringBootConfiguration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/**
 * @author 什锦
 * @since 2021-06-1
 */
@SpringBootConfiguration
public class MyWebConfigurer implements WebMvcConfigurer {

    //逻辑路径与资源路径
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/api/file/**").addResourceLocations("file:" + "E:/前端代码测试/apply/img/");
    }
}
